package com.ctms.system.service.impl;

import com.ctms.system.dao.EvaluationMapper;
import com.ctms.system.domain.CourseStudentDO;
import com.ctms.system.domain.EvaluationDO;
import com.ctms.system.domain.UserCourseDo;
import com.ctms.system.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EvaluationServiceImpl implements EvaluationService {

    @Autowired
    EvaluationMapper evaluationMapper;

    @Override
    public List<UserCourseDo> selectAllTeaEvaluation(Map<String, Object> params) {
        return evaluationMapper.selectAllTeaEvaluation(params);
    }

    @Override
    public int countTea(Map<String, Object> params) {
        return evaluationMapper.countTea(params);
    }

    @Override
    public UserCourseDo selectById(Integer Id) {
        return evaluationMapper.selectById(Id);
    }

    @Override
    public int insertStuToTea(EvaluationDO evaluationDO) {
        return evaluationMapper.insertStuToTea(evaluationDO);
    }

    @Override
    public int updateFlagById(UserCourseDo userCourseDo) {
        return evaluationMapper.updateFlagById(userCourseDo);
    }

    @Override
    public int updateFlagBySid(CourseStudentDO courseStudentDO) {
        return evaluationMapper.updateFlagBySid(courseStudentDO);
    }

    @Override
    public List<CourseStudentDO> selectAllStuEvaluation(Map<String, Object> params) {
        return evaluationMapper.selectAllStuEvaluation(params);
    }

    @Override
    public int countStu(Map<String, Object> params) {
        return evaluationMapper.countStu(params);
    }

    @Override
    public List<CourseStudentDO> selectStuFeedback(Map<String, Object> params) {
        return evaluationMapper.selectStuFeedback(params);
    }

    @Override
    public int countStuFeedback(Map<String, Object> params) {
        return evaluationMapper.countStuFeedback(params);
    }

    @Override
    public EvaluationDO selectByUserId(Integer evaluationPeople, Integer beEvaluationPeople) {
        return evaluationMapper.selectByUserId(evaluationPeople, beEvaluationPeople);
    }

    @Override
    public List<UserCourseDo> selectTeaFeedback(Map<String, Object> params) {
        return evaluationMapper.selectTeaFeedback(params);
    }

    @Override
    public int countTeaFeedback(Map<String, Object> params) {
        return evaluationMapper.countTeaFeedback(params);
    }

    @Override
    public UserCourseDo selectUserCourseById(Integer id) {
        return evaluationMapper.selectUserCourseById(id);
    }
}
